import request from '@/utils/request'

// 查询临时采购计划列表
export function listZcTemporaryPurchasePlan(query) {
  return request({
    url: '/business/ZcTemporaryPurchasePlan/list',
    method: 'get',
    params: query
  })
}

// 查询临时采购计划详细
export function getZcTemporaryPurchasePlan(id) {
  return request({
    url: '/business/ZcTemporaryPurchasePlan/' + id,
    method: 'get'
  })
}

// 新增临时采购计划
export function addZcTemporaryPurchasePlan(data) {
  return request({
    url: '/business/ZcTemporaryPurchasePlan',
    method: 'post',
    data: data
  })
}

// 修改临时采购计划
export function updateZcTemporaryPurchasePlan(data) {
  return request({
    url: '/business/ZcTemporaryPurchasePlan',
    method: 'put',
    data: data
  })
}

// 删除临时采购计划
export function delZcTemporaryPurchasePlan(id) {
  return request({
    url: '/business/ZcTemporaryPurchasePlan/' + id,
    method: 'delete'
  })
}
